package com.test;

import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.xwork.StringUtils;

import sun.misc.BASE64Encoder;

import com.dalin.common.utils.DateUtils;
import com.dalin.common.utils.NumberUtils;
import com.dalin.common.utils.TextUtils;


/******************************************************************************
 * @discribe:                                                               *
 * @project : skyform-api                                                    *
 * @author  : najianlin                                                      *
 * @crtDate : 2014-5-27 下午2:03:32                                           *
 * @email   : najl@chinaskycloud.com                                         *
 * @version : 2.1.0                                                          *
 *****************************************************************************/
public class Dog {
	public static void main(String[] args) throws Exception {
		for (int i =0;i < 100000;i++) {
			String s = "INSERT INTO `resource_test` VALUES ('njl"+i+"', 'pool1', null, 'vm', 'diskName', '', '"+DateUtils.getYmdhisStr(new Date())+"', '"+DateUtils.getYmdhisStr(new Date())+"');";
			TextUtils.appendToText(s, new File("d:/tmp/aa.txt"));
		}
	}
}
